/**
 * Created with Intellij IDEA.
 * Description:
 * User: wangj
 * Date: 2022-01-28
 * Time: 6:07
 */
public class Test {
    public static void main(String[] args) {
        for (int i = 0; i < 999; i++) {
            int x=i%10;
            int y=(i/10)%10;
            int z=(i/100)%10;
            if(i==(x*x*x)+(y*y*y)+(z*z*z)&&i>99){
                System.out.print(i+" ");
            }
        }
    }
}
